﻿package Interface
{	
	import flash.display.MovieClip;
	import fl.motion.AdjustColor;
	import flash.filters.ColorMatrixFilter;

	public class ArrowButton extends MovieClip
	{
		private var FAdjust:AdjustColor;
		private var FFilter:ColorMatrixFilter;
		
		public function ArrowButton() 
		{
			FAdjust = new AdjustColor();
			FAdjust.brightness = 0;
			FAdjust.contrast = 0;
			FAdjust.hue = 0;
			FAdjust.saturation = -100;
			FFilter = new ColorMatrixFilter(FAdjust.CalculateFinalFlatArray());
			
			buttonMode = true;
			useHandCursor = true;			
		}
		
		override public function set enabled(value:Boolean):void
		{
			super.enabled = value;			
			enabled ? filters = null : filters = [FFilter];
			buttonMode = enabled;
			useHandCursor = enabled;	
		}
	}	
}
